<!-- 搜索框及工具条 -->
<div class="c-head-box">
    <form method="get" action="{:Url('loan_del_list')}">
        <ul>
            <li class="c-head-search">
                <!-- 搜索条件 -->
                <ul>
                    <li><span>贷款产品编号：</span><input type="text" name="loan_product_id" value="{$loan_product_id}"/></li>
                    <li><span>贷款产品名称：</span><input type="text" name="loan_product_name" value="{$loan_product_name}"/></li>
                    <li><span>抵押方式：</span>{:widget('common/Select/select',array('loan_pledge','loan_pledge',$loan_pledge))}</li>
                    <li><span>还款方式：</span>{:widget('common/Select/select',array('loan_repayment','loan_repayment',$loan_repayment))}</li>
                    <li><span>职业身份要求：</span>{:widget('common/Select/select',array('loan_identity','identity',$loan_identity))}</li>
                    <li style="width: 100%"><span>所在城市：</span>{:widget('common/Select/select_group',array('area',array($area_list,"area_id","acronym","parent_id"),0,$area))}</li>
                </ul>
            </li>
            <li class="c-head-button">
                <!-- 操作按钮 -->
                <div class="fr"><input type="submit" class="but_blue" value="搜索"></div>
            </li>
        </ul>
    </form>
</div>

<!--用户列表-->
<div class="lists-tab-cont">
    <div class="lists-table">
        <table class="pointer" cellpadding="0" cellspacing="0" border="0">
            <thead>
                <tr>
                    <th style="width: 6%;" class="tabSort-header"><a class="tabSort-header-inner"><p>贷款产品编号</p></a></th>
                    <th style="width: 12%;" class="tabSort-header"><a class="tabSort-header-inner"><p>产品名称</p></a></th>
                    <th style="width: 8%;" class="tabSort-header"><a class="tabSort-header-inner"><p>贷款金额</p></a></th>
                    <th style="width: 8%;" class="tabSort-header"><a class="tabSort-header-inner"><p>贷款期限</p></a></th>
                    <th style="width: 6%;" class="tabSort-header"><a class="tabSort-header-inner"><p>一次性收费</p></a></th>
                    <th style="width: 6%;" class="tabSort-header"><a class="tabSort-header-inner"><p>抵押方式</p></a></th>
                    <th style="width: 8%;" class="tabSort-header"><a class="tabSort-header-inner"><p>还款方式</p></a></th>
                    <th style="width: 12%;" class="tabSort-header"><a class="tabSort-header-inner"><p>标签</p></a></th>
                    <th class="tabSort-header"><a class="tabSort-header-inner"><p>操作</p></a></th>
                </tr>
            </thead>
            <tbody>
                {foreach name="loan_list" item="info"}
                    <tr>
                        <td>{$info.loan_product_id}</td>
                        <td>{$info.loan_product_name}</td>
                        <td>{$info.min_loan_money}万~{$info.max_loan_money}万</td>
                        <td>{$info.min_period}月~{$info.max_period}月</td>
                        <td>{$info.nonrecurring_rate}%</td>
                        <td>{:widget('common/Color/color',array('loan_pledge',$info['loan_pledge']))}</td>
                        <td>{:widget('common/Color/color',array('loan_repayment',$info['loan_repayment']))}</td>
                        <td>{$info.loan_tag_str}</td>
                        <td>
                            <a data-type="info-win" data-src="{:Url('loan_info',array('loan_product_id'=>$info['loan_product_id']))}" data-title="详情" data-width="80%" data-height="80%" class="blue">详情</a>
                            <a href="{:Url('loan_recycle',array('loan_product_id'=>$info['loan_product_id']))}" class="blue info1"><font color="red">还原</font></a>
                            <a data-type="info-win" data-src="{:Url('loan_log',array('loan_product_id'=>$info['loan_product_id']))}" data-title="日志" data-width="80%" data-height="80%" class="blue">日志</a>
                        </td>
                    </tr>
                {/foreach}
            </tbody>
        </table>
    </div>

    <!-- 翻页模板 -->
    <div class="page">
        {$Think.config.page_html}
    </div>
</div>

<!-- JS处理 -->
<script language="javascript">
    $(function(){
        //提示信息
        $("a.info1").click(function(){
            if(confirm("您确定要还原该贷款吗？")){
                return true;
            }else{
                return false;
            }
        });
    });
</script>